package design.pattern.factory.config$factory;

/**
 * @author AtoVio, Winter Yuan
 */
public class Client {
    public static void main(String[] args) {
        // 通过动态地在配置文件中定义Coffee类，实现解耦合
        Coffee american = CoffeeFactory.createCoffee("american");
        System.out.println(american.getType());
    }
}
